From: Tim Deegan Date: Thu, 7 Apr 2011 14:08:05 +0000 (+0100) Subject: xen/x86: explicitly mark start-of-file asm()s as .text X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=33ba1e8196878dd5dc210164048aeea703b8d3af;p=xen.git xen/x86: explicitly mark start-of-file asm()s as .text LLVM and gold between them get confused when asm align commands are emitted before a section marker. Signed-off-by: Tim Deegan Acked-by: Keir Fraser --- diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c index cfdb13abf6..58f809ad42 100644 --- a/xen/arch/x86/apic.c +++ b/xen/arch/x86/apic.c @@ -82,6 +82,7 @@ bool_t __read_mostly directed_eoi_enabled = 0; * is no hardware IRQ pin equivalent for them, they are triggered * through the ICC by us (IPIs) */ +__asm__(".section .text"); BUILD_SMP_INTERRUPT(irq_move_cleanup_interrupt,IRQ_MOVE_CLEANUP_VECTOR) BUILD_SMP_INTERRUPT(event_check_interrupt,EVENT_CHECK_VECTOR) BUILD_SMP_INTERRUPT(invalidate_interrupt,INVALIDATE_TLB_VECTOR) diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c index 824e1faba1..24f4f6d54c 100644 --- a/xen/arch/x86/i8259.c +++ b/xen/arch/x86/i8259.c @@ -33,6 +33,8 @@ * interrupt-controller happy. */ +__asm__(".section .text"); + BUILD_COMMON_IRQ() #define BI(x,y) \